package cn.cvs.service.impl;

import cn.cvs.dao.AuctionrecordDao;
import cn.cvs.entity.Auctionrecord;
import cn.cvs.service.AuctionrecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("auctionrecordService")
public class AuctionrecordServiceImpl implements AuctionrecordService {
    @Resource
    private AuctionrecordDao auctionrecordDao;

    @Override
    public int addRecord(Auctionrecord auctionrecord) {
        return auctionrecordDao.addRecord(auctionrecord);
    }

    @Override
    public int delAuctionrecord(Integer id) {
        return auctionrecordDao.delAuctionrecord(id);
    }

    @Override
    public List<Auctionrecord> getList(Integer id) {
        return auctionrecordDao.getList(id);
    }

    @Override
    public int count() {
        return auctionrecordDao.count();
    }
}
